//
//  HLMessageMaker.h
//  YueYue
//
//  Created by hulu001 on 2023/6/12.
//

#import <Foundation/Foundation.h>
#import <NIMSDK/NIMSDK.h>

NS_ASSUME_NONNULL_BEGIN

@interface HLMessageMaker : NSObject

+ (NIMMessage *)msgWithText:(NSString *)text;
+ (NIMMessage *)msgWithText:(NSString *)text discount:(NSString *)discount;

+ (NIMMessage *)msgWithAudio:(NSString *)filePath;

+ (NIMMessage *)msgWithVideo:(NSString *)filePath;
+ (NIMMessage *)msgWithVideoData:(NSData *)data;
+ (NIMMessage *)msgWithVideo:(NSString *)filePath discount:(NSString *)discount;

+ (NIMMessage *)msgWithTip:(NSString *)tip;
/// 自定义消息
+ (NIMMessage *)msgWithCustomObject:(id<NIMCustomAttachment>)attachment;

+ (NIMMessage *)msgWithImage:(UIImage *)image;
+ (NIMMessage *)msgWithImage:(UIImage *)image discount:(NSString *)discount;

+ (NIMMessage*)msgWithImage:(UIImage *)image url:(NSString *)url;
+ (NIMMessage *)msgWithAttachment:(id<NIMCustomAttachment>)attchment;

@end

NS_ASSUME_NONNULL_END
